/** 才智中心 */


import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type homeResult = {
  page: any;
  result: any
};


/** 新增直播 */
export const livePreviewinsertlive = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/live/insertlive"), { data });
};


/** 删除直播 */
export const livePreviewdellive = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/secbackend/live/dellive/${userid}`));
};

/** 修改直播 */
export const livePreviewupdatelive = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/live/updatelive"), { data });
};

/** 查询直播 */
export const livePreviewsellivebypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi(`/secbackend/live/sellivebypage`), { data });
};


/** 直播审核 */
export const livePreviewsh = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/live/sh"), { data });
};









/** 新增导师  IndustryMentor */
export const IndustryMentorinsertindustrytutor = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/industrytutor/insertindustrytutor"), { data });
};


/** 删除导师 */
export const IndustryMentordelindustrytutor = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/secbackend/industrytutor/delindustrytutor/${userid}`));
};

/** 修改导师 */
export const IndustryMentorupdateindustrytutor = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/industrytutor/updateindustrytutor"), { data });
};

/** 查询导师 */
export const IndustryMentorselindustrytutorbypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/industrytutor/selindustrytutorbypage"), { data });
};
/** 导师审核 */
export const IndustryMentorsh = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/industrytutor/sh"), { data });
};











/** 新增课程  excellentCourse */
export const excellentCourseinsertcourse = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/course/insertcourse"), { data });
};


/** 删除课程 */
export const excellentCoursedelcourse = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/secbackend/course/delcourse/${userid}`));
};

/** 修改课程 */
export const excellentCourseupdatecourse = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/course/updatecourse"), { data });
};

/** 查询课程 */
export const excellentCourseselcoursebypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/course/selcoursebypage"), { data });
};
/** 导师课程 */
export const excellentCoursesh = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/course/sh"), { data });
};




/** 新增培训 trainingCenter */
export const trainingCenterinserttrainning = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/trainning/inserttrainning"), { data });
};


/** 删除培训 */
export const trainingCenterdeltrainning = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/secbackend/trainning/deltrainning/${userid}`));
};

/** 修改培训 */
export const trainingCenterupdatetrainning = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/trainning/updatetrainning"), { data });
};

/** 查询培训 */
export const trainingCenterseltrainningbypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/trainning/seltrainningbypage"), { data });
};
/** 培训审核 */
export const trainingCentersh = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/trainning/sh"), { data });
};
